<script type="text/javascript">
	$(function() {
	    $.fn.dataGridOptions.formSubFun("#form",'/modules/system/pay/payEdit.html');
	});
</script>
<div class="popForm">
    <form id="form"  method="post" enctype="multipart/form-data" >
	    <div class="formitm">
	    	<label class="lab">编号：</label>
	    	<div class="ipt">
	    		${pay.id}
	    	</div>
		</div>
		<div class="formitm">
		     <label class="lab">接口名称：</label>
		     <div class="ipt">
		     	<input type="text" name="name" class="w00 easyui-validatebox" value="${pay.name!}" data-options="required: true,validType:'maxLength[30]'" maxlength="30"/>
		     	<b>*</b>
			 </div>
		</div>
		<div class="user_right_border">
		<#if pay.imageUrl?? && pay.imageUrl!=''>
			<div class="formitm">
				<label class="lab">图片上传：</label>
				<div class="ipt">
					<img src="${image_server_url}${pay.imageUrl!}"/>
					<input name="imageUrl" type="hidden" value="${pay.imageUrl!}"/>
					<input type="file" name="file" />
				</div>
			</div>
		<#else>
			<div class="formitm">
				<label class="lab">图片上传：</label>
				<div class="ipt">
					<input type="file" name="file" />
					<p>上传最大的图片为1M，上传的格式为jpg.gif</p>
				</div>
			</div>
		</#if>
		</div>
		<div class="formitm">
		     <label class="lab">是否启用间连：</label>
		     <div class="ipt">
			 	<input type="radio" name="enable" value="1" <#if pay.enable==1>checked="checked"</#if>/>启用&nbsp;&nbsp;
             	<input type="radio" name="enable" value="0" <#if pay.enable==0>checked="checked"</#if>/>不启用
             	<b>*</b>
             </div>
		</div>
		<div class="formitm">
		     <label class="lab">是否开启直连：</label>
		     <div class="ipt">
			 	<input type="radio" name="enableDirect" value="1" <#if pay.enableDirect==1>checked="checked"</#if>/>启用&nbsp;&nbsp;
             	<input type="radio" name="enableDirect" value="0" <#if pay.enableDirect==0>checked="checked"</#if>/>不启用
             	<b>*</b>
             </div>
		</div>
		<div class="formitm">
		     <label class="lab">排序：</label>
		     <div class="ipt">
		     	<input type="text" name="sort" class="easyui-validatebox" value="${pay.sort!}" data-options="required: true, validType:'maxNum[128]'"  maxlength="3"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">接口标识：</label>
		     <div class="ipt">
		     	<input type="text" name="nid" class="w400 easyui-validatebox" value="${pay.nid!}" data-options="required: true,validType:'maxLength[20]'" maxlength="20"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">商户号：</label>
		     <div class="ipt">
		      	<input type="text" name="merchantId" class="w400 easyui-validatebox" value="${pay.merchantId!}" data-options="required: true,validType:'maxLength[30]'" maxlength="30"/>
		      </div>
		</div>
		<div class="formitm">
		     <label class="lab">充值费率：</label>
		     <div class="ipt">
		     	<input type="text" name="rechargeFee" class="w400 easyui-validatebox" value="${pay.rechargeFee!}" data-options="required: true" maxlength="5"/>
		     	<b>*</b>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">商品key：</label>
		     <div class="ipt">
		      <input type="text" name="goodsKey" class="w400 easyui-validatebox" value="${pay.goodsKey!}"  data-options="validType:'maxLength[120]'" maxlength="120"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">请求地址：</label>
		     <div class="ipt">
		      <input type="text" name="requestUrl" class="w400 easyui-validatebox" value="${pay.requestUrl!}"  data-options="validType:'maxLength[120]'" maxlength="120"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">回调地址：</label>
		     <div class="ipt">
		      <input type="text" name="returnUrl" class="w400 easyui-validatebox" value="${pay.returnUrl!}"  data-options="validType:'maxLength[120]'" maxlength="120"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">接口转入账户：</label>
		     <div class="ipt">
		     	<input type="text" name="intoAccount" class="w400 easyui-validatebox" value="${pay.intoAccount!}"  data-options="validType:'maxLength[30]'" maxlength="30"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">编码格式：</label>
		     <div class="ipt">
		     	<input type="text" name="chartset" class="w400 easyui-validatebox" value="${pay.chartset!}"  data-options="validType:'maxLength[5]'" maxlength="5"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">加密方式：</label>
		     <div class="ipt">
		      	<input type="text" name="signType" class="w400 easyui-validatebox" value="${pay.signType!}"  data-options="validType:'maxLength[30]'" maxlength="30"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">支付方式：</label>
		     <div class="ipt">
		     	<input type="text" name="payStyle" class="w400 easyui-validatebox" value="${pay.payStyle!}"  data-options="validType:'maxLength[30]'" maxlength="30"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">卖家email：</label>
		     <div class="ipt">
		      <input type="text" name="sellerEmail" class="w400 easyui-validatebox" value="${pay.sellerEmail!}"  data-options="validType:'maxLength[30]'" maxlength="30"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">处理模式：</label>
		     <div class="ipt">
		      	<input type="text" name="transport" class="w400 easyui-validatebox" value="${pay.transport!}"  data-options="validType:'maxLength[30]'" maxlength="30"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">商品描述：</label>
		     <div class="ipt">
		     	<input type="text" name="orderDescription" class="w400 easyui-validatebox" value="${pay.orderDescription!}"  data-options="validType:'maxLength[50]'" maxlength="50"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">网关url：</label>
		     <div class="ipt">
		     	<input type="text" name="gatewayUrl" class="w400 easyui-validatebox" value="${pay.gatewayUrl!}"  data-options="validType:'maxLength[120]'" maxlength="120"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">订单查询url：</label>
		     <div class="ipt">
		     	<input type="text" name="orderInquireUrl" class="w400 easyui-validatebox" value="${pay.orderInquireUrl!}"  data-options="validType:'maxLength[120]'" maxlength="120"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">证书路径：</label>
		     <div class="ipt">
		     	<input type="text" name="certPosition" class="w400 easyui-validatebox" value="${pay.certPosition!}"  data-options="validType:'maxLength[50]'" maxlength="50"/>
		     </div>
		</div>
		<div class="formitm">
		     <label class="lab">终端号：</label>
		     <div class="ipt">
		      <input type="text" name="terminalId" class="w400 easyui-validatebox" value="${pay.terminalId!}"  data-options="validType:'maxLength[30]'" maxlength="30"/>
		     </div>
		</div>
		<input type="hidden" name="id" value="${pay.id}">
	</form>
</div>
